
<template>
    <div class="spanControl-list" style="width: 100%;margin-left: 0!important;">
        <el-card class="box-card card-head" style="margin: 0px; width: 100%; min-height: 99%">
            <div slot="header" class="clearfix">
                <span>查看园区资讯</span>
            </div>

            <div class="text item">
                <el-form label-position="left" inline class="display-form">
                        <el-form-item label="标识">
                            <span>{{ parkNews.EId }}</span>
                        </el-form-item>
                        <el-form-item label="名称">
                            <span>{{ parkNews.name }}</span>
                        </el-form-item>
                        <el-form-item label="资讯标题">
                            <span>{{ parkNews.newsTitle }}</span>
                        </el-form-item>
                        <el-form-item label="资讯类型">
                            <span>{{ parkNews.newsType }}</span>
                        </el-form-item>
                        <el-form-item label="发布时间">
                            <span>{{ parkNews.releaseTime }}</span>
                        </el-form-item>
                        <el-form-item label="发布人">
                            <span>{{ parkNews.publisher }}</span>
                        </el-form-item>
                        <el-form-item label="资讯内容">
                            <span>{{ parkNews.newsContent }}</span>
                        </el-form-item>
                        <el-form-item label="备注">
                            <span>{{ parkNews.remark }}</span>
                        </el-form-item>
                        <el-form-item label="创建人">
                            <span>{{ parkNews.createId }}</span>
                        </el-form-item>
                        <el-form-item label="创建时间">
                            <span>{{ parkNews.createDatetime }}</span>
                        </el-form-item>
                        <el-form-item label="修改人">
                            <span>{{ parkNews.updateId }}</span>
                        </el-form-item>
                        <el-form-item label="修改时间">
                            <span>{{ parkNews.updateDatetime }}</span>
                        </el-form-item>
                </el-form>
            </div>
        </el-card>
    </div>
</template>

<script>
import {ParkNewsService} from './ParkNewsService';

export default {
    components: {
    },
    data() {
        return {
            parkNews:{},
        }
    },
    methods: {
        findParkNewsForView(parkNewsId)//查找园区资讯
        {
            ParkNewsService.findParkNewsForView(parkNewsId).then((resp) => {
                this.parkNews = resp.data;
        }).catch((error) => {
            this.$message({
            type: 'error',
            message: '查询园区资讯出错'
        })
        })
        },
    },
    created() {
        const parkNewsId = this.$route.params.parkNewsId;
        this.findParkNewsForView(parkNewsId);
    },
}

</script>
<style scoped lang="scss">

</style>
